import request from '@/utils/request'
// 登录
export function login(data) {
  return request({
    url: '/caizhan.php/index/newlogin',
    method: 'post',
    data
  })
}
// 获取登录token

export function gettoken() {
  return request({
    url: '/caizhan.php/index/gettoken',
    method: 'get'
  })
}
// 退出登录
export function logout() {
  return request({
    url: '/caizhan.php/index/logout',
    method: 'post'
  })
}
